package cn.test;

import java.util.Arrays;

public class YearsDays {
	
	private static int[] NUM1= {31,28,31,30,31,30,31,31,30,31,30,31};
	private static int[] NUM2= {31,29,31,30,31,30,31,31,30,31,30,31};
	private static int years;
	private static int month;
	public static void main(String[] args) {
		int years=2008;
		int month=2;
		getDays(years,month);
		
		
	}
	public static int getDays(int year, int month) {
		
		
		if((years%4==0&&years%100!=0)||(years%400==0)) {
			System.out.println(NUM2[month-1]);
			
		 }else {
			 System.out.println(NUM1[month-1]);
		 }
		return 0;
		

	
}
}
